﻿using Shop.Model.DB;
using Shop.RemoteModel.PageTemplate.Model;
using WeDonekRpc.Model;

namespace Shop.Collect
{
    public interface IPageTemplateCollect
    {
        Result Get<Result> ( long id ) where Result : class;
        bool Enable ( DBPageTemplate source );
        long Add ( PageTemplateAdd data );
        void Delete ( DBPageTemplate source );
        DBPageTemplate Get ( long id );
        Result[] Query<Result> ( PageTemplateQuery query, IBasicPage paging, out int count ) where Result : class, new();
        bool Set ( DBPageTemplate source, PageTemplateSet set );
    }
}